<?php
namespace console;

use modules\iChat\services\SocketService;
use modules\iChat\objects\Session;

class SocketController
{
	const PORT = 6070;
	//const ADDR = '127.0.0.1';
	const ADDR = '192.168.0.108';
	
	public function actionListen()
	{
		SocketService::startListen(self::ADDR, self::PORT);
	}

	// public function actionSystemCall()
	// {
	// 	$uId = '';
	// 	$toId = '';
	// 	$type = Session::TYPE_SYSTEM;
	// 	$msg = '小伙伴们，来浇水了!';
	// 	new Session($uId, $toId, $type, $msg);
	// }
}